public static void bubbleSort(int [] a, int n) {
for (int i=0 ; i<n-1 ;i++){
for (int xiangxixi=0 ; xiangxixi<n-1-i ;xiangxixi++){
if (a[xiangxixi]>a[xiangxixi+1]) {
int temp=a[xiangxixi];
a[xiangxixi]=a[xiangxixi+1];
a[xiangxixi+1]=temp;
}
}
}
}
